new (function(){
	var me = this;
	this.mod = new Gframe.module.RemoteModule({
		//TODO 配置${form.name}--key
		//key:''
	});
	
	this.mod.defaultView = function(params){
		var id = params.id || '${form.id}';
		me.mod.main.open({
			id:id,
			xtype:'form',
			mode:'${form.mode}',
			track:[
				//TODO 配置${form.name}--路径
				{name:'${form.name}'}
			],
			actFilter:function(data,purview){
				//TODO 配置${form.name}--actFilter
				return purview;
			},
			store:{
				//TODO 配置${form.name}--服务
				service:'${serviceName}.testAction',
				method:'testForm',
				params:{
					//TODO 配置${form.name}--服务参数
				},
				success:function(data,mod){
					//TODO 配置${form.name}--服务回调
				}
			},
			acts:{
				track:[
					<#list form.trackActs as ga>
					{name:'${ga.name}',value:'${ga.name}',handler:function(){
						//TODO 配置"${form.name}-${ga.name}"--业务逻辑
						<#if ga.type = 0>
						me.mod.main.alert({
							text:'${ga.name}',
							level:'info',
							delay:2000
						});
						</#if>
						<#if ga.type = 1>
						me.mod.main.confirm({
							text:'${ga.name}',
							handler:function(confirm){
								if(confirm){
								
								}
							}
						});
						</#if>
						<#if ga.type = 2>
							<#if ga.self = "self">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
									id:'${form.id}'+new Date().getMilliseconds()
								}
							});
							</#if>
							<#if ga.self = "other">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
								}
							});
							</#if>
						</#if>
					}}<#if ga_has_next>,</#if>
					</#list>
				],
				clip:[
					<#list form.clipActs as ga>
					{name:'${ga.name}',value:'${ga.name}',handler:function(){
						//TODO 配置${form.name}-${ga.name}--业务逻辑
						<#if ga.type = 0>
						me.mod.main.alert({
							text:'${ga.name}',
							level:'info',
							delay:2000
						});
						</#if>
						<#if ga.type = 1>
						me.mod.main.confirm({
							text:'${ga.name}',
							handler:function(confirm){
								if(confirm){
								
								}
							}
						});
						</#if>
						<#if ga.type = 2>
							<#if ga.self = "self">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
									id:'${form.id}'+new Date().getMilliseconds()
								}
							});
							</#if>
							<#if ga.self = "other">
							me.mod.main.remoteOpen({
								url:'modules${ga.path}',
								params:{
								}
							});
							</#if>
						</#if>
					}}<#if ga_has_next>,</#if>
					</#list>
				]
			},
			fields:[
			//TODO 配置${form.name}--页面布局
				{
					height:5,
					cols:[
						{xtype:'blank'}
					]
				},
				{
					cols:[
						{xtype:'label',value:'登录名：',textAlign:'right',width:130}
					]
				},
				{
					cols:[
						{xtype:'text',name:'account',itemId:'textName',leftHidden:true,width:'max'}
					]
				},
				{
					cols:[
						{xtype:'checkbox',name:'sex',displayValue:'man',value:'1'},
						{xtype:'checkbox',name:'sex',displayValue:'woman',value:'2'}
					]
				},
				{
					cols:[
						{xtype:'date',name:'dtftest',lable:'日期',width:'max'}
					]
				},
				{
					cols:[
						{xtype:'radio',name:'radio1',checked:true,value:'1',displayValue:'选择',width:'max'},
						{xtype:'radio',name:'radio1',value:'2',displayValue:'选择',width:'max'}
					]
				},
				{
					align:'right',
					height:200,
					cols:[
						{xtype:'textarea',name:'textarea111',label: '备注',text: '测试测试',width:'max'}
					]
				},
				{
					height:200,
					cols:[
						{xtype:'editor',name:'htmleditor',width:'max'},
						{xtype:'file',name:'upload',width:'max'},
						{xtype:'blank',width:600}
					]
				},{
					cols:[
						{xtype:'button',value:'提交',width:100,handler:function(){
								var form = me.mod.main.get('${form.id}');
								var o = form.serializeForm();
								console.log(o);
							}
						},
						{xtype:'button',value:'回填',width:100,handler:function(){
								var data = {
									name1:'123'
								};
								var form = me.mod.main.get('${form.id}');
								mc.fireEvent(form.get('id'),'loadForm',{data:data});
							}
						},
						{xtype:'blank',width:600}
					]
				}
			],
			hiddens:[
//				{name:'hidden2',value:'hidden2'}
			],
			//TODO 配置${form.name}--initMethod
			initMethod:function(mod){
				
			}
		});
	};
	
	
});